<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'tbl-user-form',
	'enableAjaxValidation'=>true,
        'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?>

	<p class="note">Campos com <span class="required">*</span> são obrigatórios.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'username'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'password'); ?>
	</div>
        
	<!--div class="row">
		<?php echo $form->labelEx($model,'salt'); ?>
		<?php echo $form->textField($model,'salt',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'salt'); ?>
	</div-->
	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>
	<div class="row">
		<?php  echo $form->labelEx($model,'classe'); ?>
		<?php  echo $form->dropDownList($model,'classe',Lookup::items('Classe')); ?>
		<?php  echo $form->error($model,'classe'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'profile'); ?>
		<?php echo $form->textArea($model,'profile',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'profile'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'img_detail'); ?>
		<?php echo $form->textField($model,'img_detail',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'img_detail'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'img'); ?>
		<?php echo CHtml::activeFileField($model,'img',array('size'=>60,'maxlength'=>200));?>
		<?php echo $form->error($model,'img'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'party'); ?>
		<?php  echo $form->dropDownList($model,'party',Lookup::items('Party')); ?>
		<?php echo $form->error($model,'party'); ?>
	</div>        
	
      <div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
      </div>
        
<?php $this->endWidget(); ?>

</div><!-- form -->